package com.blog.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName t_thumb
 */
@TableName(value ="t_thumb")
@Data
public class Thumb implements Serializable {

    /**
     * 
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long blogId;

    /**
     * 
     */
    @JsonSerialize(using= ToStringSerializer.class)
    private Long userId;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)//创建与修改时自动填充
    private Date updateTime;

    @TableField(fill = FieldFill.INSERT)//创建与修改时自动填充
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}